package com.apes.enquiry.supplier.baturu.repository;

import com.apes.enquiry.supplier.baturu.model.BaturuInquire;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.List;


public interface BaturuInquireRepository extends CustomRepository<BaturuInquire, String> {
    @Query(value = "SELECT * FROM sp_buturu_inquire WHERE ORIGIN = ?1 ", nativeQuery = true)
    List<BaturuInquire> accordOriginFind(String origin);

    @Query(value = "SELECT * FROM sp_buturu_inquire WHERE BATURU_INQUIRE_ID = ?1 ", nativeQuery = true)
    BaturuInquire accordBaturuInquiryIdFind(String baturuInquiryId);


}
